package com.gxar.uaa.server.db.model;

import lombok.Getter;
import lombok.NoArgsConstructor;
import lombok.Setter;

import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.IdClass;
import javax.persistence.Table;
import java.io.Serializable;

/**
 * 角色菜单实体
 *
 * @author linsy
 * @version 1.0
 * @created 2024/1/4 15:05
 */
@Entity
@Getter
@Setter
@NoArgsConstructor
@Table(name = "sys_role_menu")
@IdClass(RoleMenuPK.class)
public class SysRoleMenuEntity implements Serializable {
    private static final long serialVersionUID = -6337651651948125798L;
    /**
     * 角色id
     */
    @Id
    private Long roleId;
    /**
     * 菜单id
     */
    @Id
    private Long menuId;

    /**
     * 选择类型 0-全选，1-半选
     */
    private Integer type;

}
